﻿namespace Sidvall.WorkItemManager.Data
{
	public class HttpVerbCollection : System.Collections.ObjectModel.Collection<HttpVerb>
	{
		#region Public Members

		#region Add

		public void Add(string name)
		{
			HttpVerb item;

			item = new HttpVerb()
			{
				Name = name,
			};
			Add(item);
		}

		#endregion

		#endregion
		#region Factory Members

		public static HttpVerbCollection Create()
		{
			HttpVerbCollection items;

			items = new HttpVerbCollection();
			items.Add("GET");
			items.Add("POST");
			items.Add("PUT");
			items.Add("DELETE");

			return items;
		}

		#endregion
	}
}
